package java_class.Game2_class;

public class Role_test {
    public static void main(String[] args) {
        Role r1 = new Role("孙亚森", 100, '男');
        Role r2 = new Role("李晴", 100, '女');
        r1.show();
        r2.show();
        while (true) {
            r1.sttack(r2);
            if (r2.getBlood() <= 0) {
                System.out.println(r1.getName() + "K.O了" + r2.getName());
                break;
            }
            r2.sttack(r1);
            if (r1.getBlood() <= 0) {
                System.out.println(r2.getName() + "K.O了" + r1.getName());
                break;
            }
        }

    }

}